package org.jrfe.sys;

public abstract class AbstractState implements State {

	protected String stateName;
	protected boolean inited = false;
	
	public AbstractState(String stateName) {
		super();
		this.stateName = stateName;
	}

	@Override
	public void init() {
		inited = true;
	}
	
	@Override
	public boolean isInitialized() {
		return inited;
	}
	
	@Override
	public String getStateName() {
		return stateName;
	}
	
	@Override
	public void close() {}
	@Override
	public void destroy() {}
	@Override
	public void open() {}
	
	@Override
	public boolean render() {return true;}
	
	@Override
	public boolean update() {return true;}
	
}
